package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysSchoolFallowbackMapper;
import com.ruoyi.system.domain.SysSchoolFallowback;
import com.ruoyi.system.service.ISysSchoolFallowbackService;

/**
 * 学员回访跟踪信息Service业务层处理
 * 
 * @author 杨皓焜
 * @date 2021-02-05
 */
@Service
public class SysSchoolFallowbackServiceImpl implements ISysSchoolFallowbackService 
{
    @Autowired
    private SysSchoolFallowbackMapper sysSchoolFallowbackMapper;

    /**
     * 查询学员回访跟踪信息
     * 
     * @param id 学员回访跟踪信息ID
     * @return 学员回访跟踪信息
     */
    @Override
    public SysSchoolFallowback selectSysSchoolFallowbackById(Long id)
    {
        return sysSchoolFallowbackMapper.selectSysSchoolFallowbackById(id);
    }

    /**
     * 查询学员回访跟踪信息列表
     * 
     * @param sysSchoolFallowback 学员回访跟踪信息
     * @return 学员回访跟踪信息
     */
    @Override
    public List<SysSchoolFallowback> selectSysSchoolFallowbackList(SysSchoolFallowback sysSchoolFallowback)
    {
        return sysSchoolFallowbackMapper.selectSysSchoolFallowbackList(sysSchoolFallowback);
    }

    /**
     * 新增学员回访跟踪信息
     * 
     * @param sysSchoolFallowback 学员回访跟踪信息
     * @return 结果
     */
    @Override
    public int insertSysSchoolFallowback(SysSchoolFallowback sysSchoolFallowback)
    {
        return sysSchoolFallowbackMapper.insertSysSchoolFallowback(sysSchoolFallowback);
    }

    /**
     * 修改学员回访跟踪信息
     * 
     * @param sysSchoolFallowback 学员回访跟踪信息
     * @return 结果
     */
    @Override
    public int updateSysSchoolFallowback(SysSchoolFallowback sysSchoolFallowback)
    {
        return sysSchoolFallowbackMapper.updateSysSchoolFallowback(sysSchoolFallowback);
    }

    /**
     * 批量删除学员回访跟踪信息
     * 
     * @param ids 需要删除的学员回访跟踪信息ID
     * @return 结果
     */
    @Override
    public int deleteSysSchoolFallowbackByIds(Long[] ids)
    {
        return sysSchoolFallowbackMapper.deleteSysSchoolFallowbackByIds(ids);
    }

    /**
     * 删除学员回访跟踪信息信息
     * 
     * @param id 学员回访跟踪信息ID
     * @return 结果
     */
    @Override
    public int deleteSysSchoolFallowbackById(Long id)
    {
        return sysSchoolFallowbackMapper.deleteSysSchoolFallowbackById(id);
    }
}
